package com.currency.mall.netWork.api;

import com.currency.mall.Constant;
import com.currency.mall.entity.CollectShareId;
import com.currency.mall.entity.SecurityBean;
import com.currency.mall.entity.SharesBean;
import com.mifengs.commonbusines.entity.ResponseBean;

import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * Created by Administrator on 2018/12/26.
 */

public interface SharesApi {

    @POST(Constant.COLLECT_SHARES_LIST)
    Observable<SharesBean> collectList(
    );

    @GET(Constant.BONDINFO)
    Observable<SharesBean> bondInfo(
            @QueryMap Map<String, Object> map
    );

    @FormUrlEncoded
    @POST(Constant.CANCELCOLLECTSHARES)
    Observable<ResponseBean> cancelCollectShares(
            @FieldMap Map<String, Object> map
    );

    @FormUrlEncoded
    @POST(Constant.COLLECTSHARESINFO)
    Observable<ResponseBean> collectSharesInfo(
            @FieldMap Map<String, Object> map
    );

    @GET(Constant.SECURITY_INFO)
    Observable<SecurityBean> securityInfo(
    );

    @GET(Constant.COLLECTSHARE_ID)
    Observable<CollectShareId> getCollectShareId(
    );



}
